home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha Extra 2004 January / CyberMycha Extra 1-2004 (Poland) (Disc 2).bin / Pippi / gmtb.dir / 00005_scoreRails.ls < prev    next >
Encoding:
Text File  |  2001-09-12  |  576 b   |  29 lines

  1. property thisRail
  2. global gmObject
  3.  
  4. on exitFrame me
  5.   go(the frame)
  6. end
  7.  
  8. on mouseDown me
  9.   if inside(the mouseLoc, rect(32, 70, 757, 514)) then
  10.     repeat with n = gmObject.railSprites[gmObject.railSprites.count] down to gmObject.railSprites[1]
  11.       if rollover(sprite(n)) then
  12.         if sprite(n).placed = 0 then
  13.           thisRail = sprite(n)
  14.           pickRail(thisRail)
  15.           exit repeat
  16.         end if
  17.       end if
  18.     end repeat
  19.   end if
  20. end
  21.  
  22. on mouseUp me
  23.   if thisRail <> VOID then
  24.     if thisRail.placed = 0 then
  25.       dropRail(thisRail)
  26.     end if
  27.   end if
  28. end
  29.